{% set page_title = _("Login") %}
{% set active_forum_nav=True %}

{% extends theme("layout.html") %}
{% from theme("macros.html") import horizontal_field, render_boolean_field %}
{% block content %}

<div class="panel page-panel">
    <div class="panel-heading page-head">
        {% trans %}Login{% endtrans %}
    </div>

    <div class="panel-body">
        <form class="form-horizontal" role="form" method="POST">
            {{ form.hidden_tag() }}
            {{ horizontal_field(form.login)}}
            {{ horizontal_field(form.password)}}
            {{ horizontal_field(form.remember_me) }}
            {% if flaskbb_config["RECAPTCHA_ENABLED"] and login_recaptcha %}
                {{ horizontal_field(form.recaptcha) }}
            {% endif %}

            {{ horizontal_field(form.submit) }}

            <div class="form-group">
                <div class="col-sm-offset-3 col-sm-4">
                    <a class="pull-left" href="{{ url_for('auth.register') }}"><small>{% trans %}Not a member yet?{% endtrans %}</small></a>
                    <a class="pull-right" href="{{ url_for('auth.forgot_password') }}"><small>{% trans %}Forgot your Password?{% endtrans %}</small></a>
                </div>
            </div>
        </form>
    </div>
</div>

{% endblock %}
